package net.pws.oos.web.dto;

import java.util.Map;

import net.pws.common.beanutils.BeanUtils;
import net.pws.oos.biz.model.Project;

@SuppressWarnings("rawtypes") 
public class ProjectDto extends Project {
    
    /**
     * 
     */
    private static final long serialVersionUID = -1231967437862733506L;
    
    private String organId;
    
    private String organName;
    
    private String areaId;
    
    private String areaName;
    
    private String specialId;
    
    private String specialName;
    
    private String customerId;
    
    private String customerName;

    public String getOrganId() {
        return organId;
    }

    public void setOrganId(String organId) {
        this.organId = organId;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getSpecialId() {
        return specialId;
    }

    public void setSpecialId(String specialId) {
        this.specialId = specialId;
    }

    public String getSpecialName() {
        return specialName;
    }

    public void setSpecialName(String specialName) {
        this.specialName = specialName;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public static ProjectDto from(Project project) {
        ProjectDto result = new ProjectDto();
        BeanUtils.copyProperties(result, project);
        
        return result;
    }

    public static ProjectDto from(Map map) {
        ProjectDto dto = new ProjectDto();
        BeanUtils.copyProperties(dto, map);
        return dto;
    }

}
